<?php
/**
 *@file commentreport.php
 *@author Zhe.Zhou(zhouzhe@haibao.com)
 *@date 2015-7-29 下午4:21:02
 *@brief  
 */
namespace haibao\app\data;

class CommentReport extends BaseMysql{
	public function __construct(){
		parent::__construct('\haibao\app\model\data\CommentReport');
	}
	
	/**
	 * 保存举报其他人评论记录
	 */
	public function saveReport($model){
	    $this->add($model);
	}
	
	public function updateByReportId($id, $arrSet){
	    if(is_array($id)){
	        foreach($id as $key=>$val){
	            $this->updateById($val, $arrSet);
	        }
	    }else{
	        $this->updateById($id, $arrSet);
	    }
	}
}